home *** CD-ROM | disk | FTP | other *** search
- on scrollInkEffectsUp
- global gCurrentInkPosition, gCurrentInk
- doButton()
- if the result = 1 then
- if gCurrentInkPosition < 2 then
- nothing()
- else
- repeat with N = 1 to 4
- set the memberNum of sprite (16 + N) to the memberNum of sprite (16 + N) - 1
- end repeat
- set gCurrentInkPosition to gCurrentInkPosition - 1
- if the visible of sprite 21 = 1 then
- if the locV of sprite 21 = 93 then
- set the visible of sprite 21 to 0
- else
- set oldLocV to the locV of sprite 21
- set the locV of sprite 21 to oldLocV + 12
- end if
- end if
- repeat with N = 1 to 4
- set testSpriteNum to the memberNum of sprite (16 + N)
- set testCast to the castLibNum of sprite (16 + N)
- if the name of member testSpriteNum of castLib testCast = gCurrentInk then
- HighlightInk(N)
- end if
- end repeat
- updateStage()
- end if
- end if
- end
-
- on scrollInkEffectsDown
- global gCurrentInkPosition, gCurrentInk
- doButton()
- if the result = 1 then
- if gCurrentInkPosition > 14 then
- nothing()
- else
- repeat with N = 1 to 4
- set the memberNum of sprite (N + 16) to the memberNum of sprite (N + 16) + 1
- end repeat
- set gCurrentInkPosition to gCurrentInkPosition + 1
- if the visible of sprite 21 = 1 then
- if the locV of sprite 21 = 57 then
- set the visible of sprite 21 to 0
- else
- set oldLocV to the locV of sprite 21
- set the locV of sprite 21 to oldLocV - 12
- end if
- end if
- repeat with N = 1 to 4
- set testSpriteNum to the memberNum of sprite (N + 16)
- set testCast to the castLibNum of sprite (N + 16)
- if the name of member testSpriteNum of castLib testCast = gCurrentInk then
- HighlightInk(N)
- end if
- end repeat
- updateStage()
- end if
- end if
- end
-